<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SciftbcontratCreateDlg" widgetVar="SciftbcontratCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateSciftbcontratTitle}">

            <h:form id="SciftbcontratCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{sciftbcontratController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_fecha}" for="fecha" />
                        <p:calendar id="fecha" pattern="MM/dd/yyyy HH:mm:ss" value="#{sciftbcontratController.selected.fecha}" title="#{myBundle.EditSciftbcontratTitle_fecha}" required="true" requiredMessage="#{myBundle.EditSciftbcontratRequiredMessage_fecha}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_remuneracion}" for="remuneracion" />
                        <p:inputText id="remuneracion" value="#{sciftbcontratController.selected.remuneracion}" title="#{myBundle.CreateSciftbcontratTitle_remuneracion}" required="true" requiredMessage="#{myBundle.CreateSciftbcontratRequiredMessage_remuneracion}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_fechainicio}" for="fechainicio" />
                        <p:calendar id="fechainicio" pattern="MM/dd/yyyy" value="#{sciftbcontratController.selected.fechainicio}" title="#{myBundle.EditSciftbcontratTitle_fechainicio}" required="true" requiredMessage="#{myBundle.EditSciftbcontratRequiredMessage_fechainicio}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_fechafin}" for="fechafin" />
                        <p:calendar id="fechafin" pattern="MM/dd/yyyy" value="#{sciftbcontratController.selected.fechafin}" title="#{myBundle.EditSciftbcontratTitle_fechafin}" required="true" requiredMessage="#{myBundle.EditSciftbcontratRequiredMessage_fechafin}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_tipo}" for="tipo" />
                        <p:inputText id="tipo" value="#{sciftbcontratController.selected.tipo}" title="#{myBundle.CreateSciftbcontratTitle_tipo}" required="true" requiredMessage="#{myBundle.CreateSciftbcontratRequiredMessage_tipo}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_referencias}" for="referencias" />
                        <p:inputText id="referencias" value="#{sciftbcontratController.selected.referencias}" title="#{myBundle.CreateSciftbcontratTitle_referencias}" required="true" requiredMessage="#{myBundle.CreateSciftbcontratRequiredMessage_referencias}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_horario}" for="horario" />
                        <p:inputText id="horario" value="#{sciftbcontratController.selected.horario}" title="#{myBundle.CreateSciftbcontratTitle_horario}" />

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_numero}" for="numero" />
                        <p:inputText id="numero" value="#{sciftbcontratController.selected.numero}" title="#{myBundle.CreateSciftbcontratTitle_numero}" required="true" requiredMessage="#{myBundle.CreateSciftbcontratRequiredMessage_numero}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{sciftbcontratController.selected.fecharegistro}" title="#{myBundle.EditSciftbcontratTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditSciftbcontratRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbcontratLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sciftbcontratController.selected.observaciones}" title="#{myBundle.CreateSciftbcontratTitle_observaciones}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sciftbcontratController.saveNew}" value="#{myBundle.Save}" update="display,:SciftbcontratListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SciftbcontratCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SciftbcontratCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
